package org.example.test1.newservice.newserviceimpl;

import org.example.test1.newmapper.QueryMapper;
import org.example.test1.newservice.QueryService;
import org.example.test1.result.Resulttest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class QueryServiceimpl implements QueryService {
    @Autowired
    private QueryMapper testmapper;

    @Override
    public Resulttest select(int id) {
        return testmapper.select(id);
    }

    @Override
    public ArrayList<Resulttest> selectAll() {
        return testmapper.selectAll();
    }
}
